# 给定一个字符串："itheima itcast boxuegu"
# 统计字符串内有多少个"it"字符
# 将字符串内的空格，全部替换为字符："|"
# 并按照"|"进行字符串分割，得到列表
num = "itheima itcast boxuegu"
print(num.count("it"))
new_num = num.replace(" ","|")
print(new_num)
new_num = num.split(" ")
print(new_num)


